<div class="layui-header header">
    <div class="layui-main">
        <a class="logo" href="/"><img style="width: 150px;" src="/assets/img/sanmu.png"></a>

        #if(user)
        <ul class="layui-nav right" lay-filter="">
            <li class="layui-nav-item">
                <a href="javascript:">#(username)</a>
                <dl class="layui-nav-child">
                    <!--<dd><a href="/user">个人资料</a></dd>-->
                    <!--<dd><a href="/user/party">我的聚会</a></dd>-->
                    <dd><a href="/login/logOut">退出</a></dd>
                </dl>
            </li>
        </ul>
        #else
        <ul class="layui-nav right">
            <li class="layui-nav-item"><a href="/login">登录</a></li>
            <li class="layui-nav-item"><a href="/register">注册</a></li>
        </ul>
        #end
    </div>
</div>